package com.zhongyouyun.admin.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhongyouyun.admin.model.DeptModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

/**
 * @Author: shenyi
 * @Date: 2021-12-17
 * @Description: 服务类
 */

public interface DeptService extends IService<DeptModel> {

    IPage<DeptModel> selectPage(Page<DeptModel> userPage, QueryWrapper<DeptModel> queryWrapper);

    List<DeptModel> selectList(QueryWrapper<DeptModel> queryWrapper);

    List<Tree<Long>> findDeptTree(DeptModel deptModel);

    String getoid(Long deptId);
}
